package com.cqjtu.store.user.pojo.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
@Data
@ApiModel(value = "用户登录信息",description = "对用户登录的信息进行封装")
public class UserLogDTO {
    /*注册用户名*/
    @NotBlank(message = "登录用户名不能为空")
    @ApiModelProperty(value = "用户名",name = "username",example = "rose",required = true)
    private String username;
    /*注册的密码*/
    @ApiModelProperty(value = "用户密码",name = "password",example = "123456",required = true)
    @NotBlank(message = "登录密码不能为空")
    private String password;

}
